package pe.com.hermes.hermetic.authentication.provider;

import org.apache.commons.logging.Log;

import org.apache.commons.logging.LogFactory;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.userdetails.UserDetails;

public class CustomAuthenticationProvider extends DaoAuthenticationProvider {


    private final Log logger = LogFactory.getLog(this.getClass());

    @Override
    protected void additionalAuthenticationChecks(UserDetails userDetails, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {

        logger.info("don't perform any additionalc check as we are not doing any authentication");


        //  super.additionalAuthenticationChecks(userDetails, authentication);


    }
}

